local vFrame = 0

function ccR_Custom_Features()
	if FireHack then
		-- Kafakota_Berry.lua
		if ccRS.CF_Kafakota_Berry then ccR_Kafakota_Berry() end;
		-- Stay_Potted
		if ccRS.CF_Stay_Potted then ccR_Stay_Potted() end;
		-- Use Health Potions
		if ccRS.CF_Health_Potions then ccR_Use_Health_Potions() end;
		-- Use Mana Potions
		if ccRS.CF_Mana_Potions then ccR_Use_Mana_Potions() end;
		-- Use Engineering Bombs
		if ccRS.CF_Engineering_Bombs then ccR_SSUUTB() end;
		-- Use Kafa Press
		if ccRS.CF_KafaPress then ccR_KafaPress() end;
		-- Use Track Good Lewt
		if ccRS.CF_Track_Good_Lewt then ccR_Track_Good_Lewt() end;
	end
end

function ccR_Custom_Features_OnLoad()
	-- Features to run once FireHack is loaded
	frccRCF = CreateFrame("Frame")
	frccRCF:SetScript("OnUpdate", frccRCF_OnUpdate)
	ccR_CustomFeaturesAddon = true
end

function frccRCF_OnUpdate(self, elapsed)
	vFrame = vFrame + 1
	if vFrame > 1
	and FireHack
	then
		-- Mop Treasure Tracking
		if ccRS.CF_Treasure_Tracking then ccR_MoP_Treasure_Tracking() end;
		-- Track Target
		if ccRS.CF_Target_Tracking then ccR_TrackTarget() end;		
		frccRCF:SetScript("OnUpdate", nil)
	end
end

ccR_Custom_Features_OnLoad()